package datastructure.array;

public class TestArray {
    public static void main(String[] args) {
        Array<Integer> arr = new Array<>(20);
        for (int i = 0; i < 10; i++) {
            arr.addLast(i);
        }
        arr.add(1, 100);
        boolean empty = arr.isEmpty();
        System.out.println(empty);
        System.out.println(arr.toString());

        int element = arr.get(2);
        System.out.println(element);

        arr.add(2, 234);
        System.out.println(arr);
        arr.removeElement(4);
        System.out.println(arr);
        arr.remove(2);
        System.out.println(arr);

        System.out.println(arr.contains(3));


    }
}
